package cn.edu.neusoft.yuejian4.yuejian_4.model;

import android.transition.Slide;



import java.util.List;

import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.ShowComment;
import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Slideshow;
import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Success;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.List_TListener;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.TListener;
import retrofit2.Call;

/**
 * Created by Lix on 2018/10/15.
 */

public class ShowModel extends RetrofitBaseModel {
    public void allShow(List_TListener<Slideshow> list_tListener){
        Call<List<Slideshow>> call = service.allShow();
        callenqueue_list(call,list_tListener);
    }

    public void getShow(int sid, TListener<Slideshow> listener){
        Call<Slideshow> call = service.getShow(sid);
        callenqueue(call,listener);
    }
    public void getComment(int sid,List_TListener<ShowComment> list_tListener){
        Call<List<ShowComment>> call = service.getComment(sid);
        callenqueue_list(call,list_tListener);
    }

    public void fabu(int uid, String intro, String pic, TListener<Success> listener){
        Call<Success> call = service.fabu(uid,intro,pic);
        callenqueue(call,listener);
    }
    public void subComment(int uid,String intro,int sid,TListener<Success> listener){
        Call<Success> call = service.subComment(uid,intro,sid);
        callenqueue(call,listener);
    }
}
